<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 浮点数
      console.log("Math.floor(3.6)", Math.floor(3.6)); //3
      console.log("Math.ceil(3.6)", Math.ceil(3.6)); //4
      console.log("Math.round(3.6)", Math.round(3.6)); //4
      console.log("Math.round(3.3)", Math.round(3.3)); //3
      console.log("Math.round(-3.6)", Math.round(-3.6)); //-4
    </script>
  </body>
</html>
